package org.example.dao;

import org.apache.ibatis.annotations.Mapper;
import org.example.domain.Message;

import java.util.List;

@Mapper
public interface MessageDao {
    int saveOne(Message message);
    List<Message> searchTo(int toId,int start,int end);
    int searchCount(int toId);
    List<Message> searchMessageByConversationId(String conversationId);
    void changeNoRead(List<Integer> ids);
    int remove(int messageId);
    List<Message> searchSystemMessage(int toId, String type,int start,int limit);
    int getSystemNoReadCount(int toId,String type);
    int getSystemMessageCountByType(int toId,String type);
}
